// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_fk.p_b;

import com.nnee.p_i.cls_c;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;

// Referenced classes of package com.nnee.p_fk.b:
//            e, a

public class cls_b extends com.nnee.p_fk.p_b.cls_e 
{

    public cls_b(cls_a a1, Object obj, int i, int j)
    {
        super(-1);
        d = a1;
        e = obj;
        f = i;
        g = j;
    }

    public cls_b(Vector vector, Object obj, int i, int j)
    {
        super(-1);
        c = vector;
        e = obj;
        f = i;
        g = j;
    }

    protected int a()
    {
        return g;
    }

    protected void a(int i, int j)
    {
        f = i;
        g = j;
    }

    public void a(int i, Exception exception)
    {
    }

    protected void func_a(Object obj)
    {
        a(obj, true);
    }

    protected void a(Object obj, boolean flag)
    {
        if(flag && e != null && (e instanceof InputStream))
            try
            {
                ((InputStream)e).close();
            }
            catch(IOException ioexception) { }
        e = null;
        e = obj;
    }

    public boolean b()
    {
        boolean flag;
        if(f == 0)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public final void c()
    {
        f();
        if(g() == null) {
        	func_a(null);
            return;
        } else {
        	if(c != null) {
        		int i = 0;
                while(i < c.size()) 
                {
                    cls_a a1 = (cls_a)c.elementAt(i);
                    if(a1 != null)
                    {
                        a1.h();
                        if(!a1.o())
                            try
                            {
                                if(f == 0)
                                    a1.a(g, e);
                                else
                                    a1.b(g, e);
                            }
                            catch(Exception exception)
                            {
                                exception.printStackTrace();
                            }
                    }
                    i++;
                }
                
                func_a(null);
                return;
        	} else {
        		d.h();
                if(d.o()) {
                	func_a(null);
                     return;
                } else {
                	if(f != 0) {
                		 try
                	        {
                	            d.b(g, e);
                	        }
                	        catch(Exception exception1)
                	        {
                	            exception1.printStackTrace();
                	        }
                	} else {
                		d.a(g, e);
                	}
                }
        	}
        }
        
        func_a(null);
        return;
    }

    protected Object d()
    {
        return e;
    }

    public void f()
    {
    	byte abyte0[] =null;
        if(e == null) {return;} else {
        	if(!(e instanceof byte[])) {
        		if(!(e instanceof InputStream)) {
        			return;
        		} else {
        			 abyte0 = com.nnee.p_pr.p_a.cls_e.b((InputStream)e);
        			 func_a(new String(abyte0));
        			 return;
        		}
        	} else {
        		abyte0= (byte[])(byte[])e;
        		func_a(new String(abyte0));
        		return;
        	}
        }

    }

    public static final int a = 0;
    public static final int b = 1;
    Vector c;
    cls_a d;
    Object e;
    int f;
    int g;
}
